// 寄生组合式
Super.prototype.say = function () {
    console.log(this.name);
}
function Super(name) {
    this.name = name,
        this.colors = ['red', 'blue', 'green']
}
function Son(name, age) {
    this.age = age;
    Super.call(this, name)
}

var another = Object.create(Super.prototype);
another.constructor = Son;
Son.prototype.constructor=Son

// var another = Object.assign(Son.prototype(), Super.prototype())
// // Son.prototype = another;

var instance1 = new Son('duck', 19)
instance1.colors.push('pink')
var instance2 = new Son('cat', 18)